//
//  BMSRealnameResultModel.m
//  WDBMS
//
//  Created by YeJary on 2025/5/13.
//

#import "BMSRealnameResultModel.h"

@implementation BMSRealnameResultModel

+ (instancetype)modelWithDictionary:(NSDictionary *)dict {
    BMSRealnameResultModel *model = [[BMSRealnameResultModel alloc] init];
    model.name = dict[@"name"] ?: @"";
    model.idcard = dict[@"idcard"] ?: @"";
    model.res = dict[@"res"] ?: @"";
    model.descriptionText = dict[@"description"] ?: @"";
    model.sex = dict[@"sex"] ?: @"";
    model.birthday = dict[@"birthday"] ?: @"";
    model.address = dict[@"address"] ?: @"";
    model.useApi = [dict[@"use_api"] integerValue] == 1;
    return model;
}

@end

